<layout name="layout" /> 
<div class="container-fluid">

	<div class="row">
		<div class="col-md-12">
			<form action="__CONTROLLER__/handle" class="form-horizontal" method="post">
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="email"> 管理员邮箱</label>
					<div class="col-sm-9">
						<input type="text" name="email" id="email" value="{$email.content}" class="col-xs-10 col-sm-5">
					</div>
				</div>
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="url"> 网站地址</label>
					<div class="col-sm-9">
						<input type="text" name="url" id="url" value="{$url.content}" class="col-xs-10 col-sm-5">
					</div>
				</div>				
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="open_register"> 是否开放注册</label>
					<div class="col-sm-9">
						<select name="open_register" id="">
							<option value="1" <if condition="$open_register['content'] eq 1">selected="selected"</if> >开放</option>
							<option value="0" <if condition="$open_register['content'] eq 0">selected="selected"</if>>关闭</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="website"> 是否关闭网站</label>
					<div class="col-sm-9">
						<select name="close_website" id="website">
							<option value="1" <if condition="$close_website['content'] eq 0">selected="selected"</if>>打开</option>
							<option value="0" <if condition="$close_website['content'] eq 0">selected="selected"</if>>关闭</option>
						</select>
						<textarea name="close_website_describe"  class="form-control limited" id="close_website_describe" maxlength="50" >{$close_website_describe['content']}</textarea>

					</div>
				</div>		
				<div class="clearfix form-actions">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-info" type="submit">
							<i class="ace-icon fa fa-check bigger-110"></i>
							提交
						</button>

						&nbsp; &nbsp; &nbsp;
						<button class="btn" type="reset">
							<i class="ace-icon fa fa-undo bigger-110"></i>
							重置
						</button>
					</div>
				</div>										
			</form>			
		</div>
	</div>
</div>
<script type="text/javascript">
	jQuery(document).ready(function($) {

		jQuery("#website").change(function(event) {
			var checkValue=$("#website").val();
			if(checkValue == 0){
				jQuery("#close_website_describe").css('display','block');
			}else{
				jQuery("#close_website_describe").css('display','none');
			}	
		});
	});

</script>
